 {template 'style/style1/header'}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">详情</h3>
    </div>
    <div class="panel-body">
        <pre>内容：<span class="label label-info">{$item['content']}</span>&nbsp;状态：<span class="label label-success">{if $item['status'] == 3}处理中{elseif $item['status'] == 1}已处理{elseif $item['status' == 2]}未处理{/if}</span></pre> 
        <div id="previewImage">
                {if $imgs}
                     {loop $imgs $img}
                     <img src="{$img['src']}" class="img-thumbnail" width="90" height="90">
                     {/loop}
                {/if}
        </div>
    </div>
</div>
{if $item['resolver']}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">处理</h3>
    </div>
    <div class="panel-body">
        <form action="" class="form-horizontal form" method="post">
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">状态:</label>
                <div class="col-sm-3">
                    <select name="status" class="form-control">
                        <option value="2" {if intval($item[ 'status'])==2} selected{/if}>未处理</option>
                        <option value="3" {if intval($item[ 'status'])==3} selected{/if}>处理中</option>
                        <option value="1" {if intval($item[ 'status'])==1} selected{/if}>已处理</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="" class="col-sm-2 control-label"></label>
                <div class="col-sm-2">
                    <button type="submit" class="btn btn-primary btn-block" name="submit" value="提交">提交</button>
                    <input type="hidden" name="token" value="{$_W['token']}" />
                </div>
            </div>
        </form>
    </div>
</div>
{/if}
<script>
    $(function(){
        select('a1');
    });
    </script>
    <script type="text/javascript">

wx.config(jssdkconfig);

$(document).on('click', '#previewImage img',function(event) {
        var imgArray = [];
        var curImageSrc = $(this).attr('src');
        alert(curImageSrc);
        if (curImageSrc) {
            $('#previewImage img').each(function(index, el) {
                var itemSrc = $(this).attr('src');
                imgArray.push(itemSrc);
            });
  
                wx.previewImage({
                    current: curImageSrc,
                    urls: imgArray
                });
        
        }
  
 });


</script>
{template 'style/style1/footer'}